package com.ed100.sass.patter.decorator;

public class Decorator implements Sourceable {

	private Sourceable sourceable;
	
	public Decorator(Sourceable sourceable) {
		this.sourceable = sourceable;
	}
	
	@Override
	public void doMethod() {
		System.out.println("decorator start .....");
		sourceable.doMethod();
		System.out.println("decorator end .......");
	}

	public static void main(String[] args) {
		Sourceable source = new Source();
		
		Decorator decorator = new Decorator(source);
		
		decorator.doMethod();
	}
}
